﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;

public partial class Manage_header : System.Web.UI.Page
{
    BLL.UserBll ub = new BLL.UserBll();

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            string userId = Page.User.Identity.Name;
            Model.User user = ub.GetUser(userId);

            lb_UserName.Text = user.usrName;
        }
    }
    protected void btn_Cancel_Click(object sender, EventArgs e)
    {
        FormsAuthentication.SignOut();

        FormsAuthentication.RedirectToLoginPage();
        //Response.Redirect("~/index.aspx");
    }
}
